package com.mjw.tender.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Data
@Table(name = "comment_b")
public class CommentB implements Serializable {
    /**
     * 子评论id
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 父评论id
     */
    @Column(name = "comment_id")
    private Long commentId;

    /**
     * 评论者id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 被评论者id
     */
    @Column(name = "to_id")
    private Long toId;

    /**
     * 内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 文章Id
     */
    @Column(name = "article_id")
    private Long articleId;

    private static final long serialVersionUID = 1L;
}